package jmine.tec.web.exception;

import bancosys.tec.exception.AbstractException;
import bancosys.tec.exception.LocalizedMessageHolder;

/**
 * Exception base do componente.
 * 
 * @author Gallardo
 */
public class WebWicketException extends AbstractException {

    /**
     * Construtor.
     * 
     * @param messageHolder message
     * @param cause cause
     */
    public WebWicketException(LocalizedMessageHolder messageHolder, Throwable cause) {
        super(messageHolder, cause);
    }

    /**
     * Construtor.
     * 
     * @param messageHolder message
     */
    public WebWicketException(LocalizedMessageHolder messageHolder) {
        super(messageHolder);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getBundleBaseName() {
        throw new UnsupportedOperationException("Esperado utilizar as exceções passando LocalizedMessageHolder.");
    }
}
